# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
pkgname=py3-confuse
pkgver=2.0.1
pkgrel=0
pkgdesc="Painless YAML config files for Python"
url="https://github.com/beetbox/confuse"
arch="noarch"
license="MIT"
depends="python3 py3-yaml"
makedepends="py3-gpep517 py3-flit-core py3-installer"
checkdepends="py3-nose"
subpackages="$pkgname-pyc"
source="confuse-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/c/confuse/confuse-$pkgver.tar.gz"
builddir="$srcdir/confuse-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	nosetests
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/confuse*.whl
}

sha512sums="
fe9e17d3b321079290fa2c7db64cd5664db11f1277fe608cf5a1419254b83eee9bc169e34631a429ab1bf47779ea709156b8310a97e65fae32a20802b379fa76  confuse-2.0.1.tar.gz
"
